package user;

import operation.*;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:岁亮亮
 * Date:2024-01-08
 * TIME:19:26
 */
public class Administrator extends User {
    public Administrator(String name) {
        super(name);
        this.iOoperations=new IOoperation[]{
                new exitoperation(),
                new addoperation(),
                new deloperation(),
                new checkoperation(),
                new modoperation(),
                new disoperation()
        };
    }

    public int menu(){
        System.out.println("************************");
        System.out.println("1 添加图书");
        System.out.println("2 删除图书");
        System.out.println("3 查找图书");
        System.out.println("4 修改图书");
        System.out.println("5 显示图书");
        System.out.println("0 退出系统");
        System.out.println("************************");
        System.out.println("请输入你要操作的内容");
        Scanner scanner=new Scanner(System.in);
        return scanner.nextInt();
    }

}
